import request from '@/utils/request'

// 查询策略执行结果表列表
export function listSysStrategyExecuteResult (query) {
  return request({
    url: '/sys/sysStrategyExecuteResult/list',
    method: 'get',
    params: query
  })
}

// 查询策略执行结果表详细
export function getSysStrategyExecuteResult (id) {
  return request({
    url: '/sys/sysStrategyExecuteResult/' + id,
    method: 'get'
  })
}

// 新增策略执行结果表
export function addSysStrategyExecuteResult (data) {
  return request({
    url: '/sys/sysStrategyExecuteResult',
    method: 'post',
    data: data
  })
}

// 修改策略执行结果表
export function updateSysStrategyExecuteResult (data) {
  return request({
    url: '/sys/sysStrategyExecuteResult',
    method: 'put',
    data: data
  })
}

// 删除策略执行结果表
export function delSysStrategyExecuteResult (id) {
  return request({
    url: '/sys/sysStrategyExecuteResult/' + id,
    method: 'delete'
  })
}

// 导出策略执行结果表
export function exportSysStrategyExecuteResult (query) {
  return request({
    url: '/sys/sysStrategyExecuteResult/export',
    method: 'get',
    params: query
  })
}
// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/sys/sysStrategyExecuteResult/getInitData/' + dictTypes,
    method: 'get'
  })
}
